{extend name='main'}

{block name="button"}
<button data-modal='{:url("add")}' data-title="新增定时任务" class='layui-btn layui-btn-sm layui-btn-primary'>新增定时任务</button>
{/block}

{block name="content"}
<div class="think-box-shadow">
    {include file='planning_tasks/index_search'}
    <table class="layui-table margin-top-10" lay-skin="line">
        {notempty name='list'}
        <thead>
<!--        <tr>-->
<!--            <th class='list-table-check-td think-checkbox'>-->
<!--                <label><input data-auto-none data-check-target='.list-check-box' type='checkbox'></label>-->
<!--            </th>-->
            <th class='text-center'>序号</th>
            <th class='text-center'>bean名称</th>
            <th class='text-center'>参数</th>
            <th class='text-center'>cron表达式</th>
            <th class='text-center'>备注</th>
            <th class='text-center'>状态</th>
            <th class='text-center'>操作</th>
        </tr>
        </thead>
        {/notempty}
        <tbody>
        {volist name="list" id="vo"}
        <tr data-dbclick>
<!--            <td class='list-table-check-td think-checkbox'>-->
<!--                <label><input class="list-check-box" value='' type='checkbox'></label>-->
<!--            </td>-->
            <td class='text-center'>{$vo.id}</td>
            <td class='text-center'>{$vo.name}</td>
            <td class='text-center'>{$vo.parameter}</td>
            <td class='text-center'>{$vo.cmd}</td>
            <td class='text-center'>{$vo.desc}</td>
<!--            <td class='text-center'>{$vo.status}</td>-->
            <td class='text-center'>{if isset($vo.status) && $vo.status==1 }正常{else}关闭{/if}</td>
            <td class='text-center'>
                <a data-dbclick class="layui-btn layui-btn-sm" data-title="编辑" data-modal='{:url("edit")}?id={$vo.id}'>编 辑</a>
                <a class="layui-btn layui-btn-danger layui-btn-sm" data-confirm="确定要删除吗?" data-action="{:url('remove')}" data-value="id#{$vo.id}" data-csrf="{:systoken('remove')}">删 除</a>
            </td>
        </tr>
        {/volist}
        </tbody>
    </table>
    {empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}
</div>
{/block}